// Purpose : This file include two class and one interface for expert blog
// Author  : Vinayak  Singh Rathore
// Date    : 24 Sep 
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;

/// <summary>
/// Summary description for ExpertBlog
/// </summary>
public class ExpertBlog : IExpert
{
	public ExpertBlog()
	{
		
	}
    string _GroupPractice;
    string _Name;
    string _Title;
    string _ImagePath;
    int _ID;
    int _UserType;
    public int Usertype
    {
        get { return _UserType; }
        set { _UserType = value; }
    }
    public int ID
    {
        get
        {
            return _ID;
        }
        set
        {
            _ID = value;
        }

    }
#region IExpert Members

    public string GroupPractice
    {
        get
        {
            return _GroupPractice;  
        }
        set
        {
            _GroupPractice = value;
        }
    }

    public string Name
    {
        get
        {
            return _Name;
        }
        set
        {
            _Name = value;
        }
    }

    public string Title
    {
        get
        {
            return _Title;
        }
        set
        {
            _Title = value;
        }
    }

    public string ImagePath
    {
        get
        {
            return _ImagePath;
        }
        set
        {
            _ImagePath = value;
        }
    }

    #endregion
}


public interface IExpert
{
    string GroupPractice
    {
        get;
        set;
    }
   string Name
    {
        get;
        set;
    }
    string Title
    {
        get;
        set;
    }
    string ImagePath
    {
        get;
        set;
    }


}

/// <summary>
/// public class ExpertCollection:CollectionBase,IExpert
/// <remarks>This class is use for add collection of ExpertBlog class</remarks>
/// <author>Vinayak Singh Rathore</author>
/// <date>23 Sep, 2007</date>
/// </summary>
public class ExpertCollection:CollectionBase,IExpert
{
    string _GroupPractice;
    string _Name;
    string _Title;
    string _ImagePath;
    #region IExpert Members

    public string GroupPractice
    {
        get
        {
            return _GroupPractice;
        }
        set
        {
            _GroupPractice = value;
        }
    }
    /// <summary>
    /// public string Name
    /// </summary>
    public string Name
    {
        get
        {
            return _Name;
        }
        set
        {
            _Name = value;
        }
    }
    /// <summary>
    /// public string Title
    /// </summary>
    public string Title
    {
        get
        {
            return _Title;
        }
        set
        {
            _Title = value;
        }
    }
    /// <summary>
    /// public string ImagePath
    /// </summary>
    public string ImagePath
    {
        get
        {
            return _ImagePath;
        }
        set
        {
            _ImagePath = value;
        }
    }

    #endregion
    /// <summary>
    /// 
    /// </summary>
    /// <param name="index">int</param>
    /// <returns>ExpertBlog instance</returns>
    public ExpertBlog this[int index]
    {
        get
        {
            return (ExpertBlog)this[index];
        }
        set
        {
            this[index] = value;
        }

    }
    /// <summary>
    /// This function is use for add expert blog in a collection
    /// </summary>
    /// <author>Vinayak Singh Rathore</author>
    /// <date>24 Sep, 2007</date>
    /// <param name="pobjExpertBlog"></param>
    public void Add(ExpertBlog pobjExpertBlog)
    {
        List.Add(pobjExpertBlog);
    }

    
}

